package track2.context;

public class Config {
	
	public static String trainingFolderPath = "/home/ec2-user/bigml/kdd2012/traindata/";
	public static String testingFolderPath = "/home/ec2-user/bigml/kdd2012/test/";
	public static String modelFeaturesFolderPath = "/home/ec2-user/bigml/kdd2012/model/";
	
	public static String naiveBayesFeaturePath = modelFeaturesFolderPath + "naiveBayesFeature";
	public static String idNaiveBayesFeaturePath = modelFeaturesFolderPath + "idNaiveBayesFeature";
	
	
	public static String trainingFilePath = trainingFolderPath + "training.txt";
	public static String titleTokenPath = trainingFolderPath + "titleid_tokensid.txt";
	public static String descriptionTokenPath = trainingFolderPath + "descriptionid_tokensid.txt";
	public static String purchaseKeywordTokenPath = trainingFolderPath + "purchasedkeywordid_tokensid.txt";
	public static String queryTokenPath = trainingFolderPath + "queryid_tokensid.txt";
	public static String userProfilePath = trainingFolderPath + "userid_profile.txt";
	public static String testFilePath = trainingFolderPath + "test.txt";
	public static String sampleTestFilePath = trainingFolderPath + "testing_sample_content.txt";
	public static String sampleTrainFilePath = trainingFolderPath + "train_sample.txt";
	
	//id size of each feature
	
	//	ad:	minId	0	maxId	22238277
	//	advertiserId:	minId	0	maxId	39191
	public static final int adIdSize = 22238278;
	public static final int advertiserIdSize = 39192;
	public static final int queryIdSize = 26243606;
	public static final int purchaseIdSize = 1249784;
	public static final int titleIdSize = 4051440;
	public static final int descriptionIdSize = 3171829;
	public static final int userIdSize = 23907635;
	public static final int trainingInstanceNum = 149639105;
	//	i:	minId	0	maxId	26243605
	//	i:	minId	0	maxId	1249783
	//	i:	minId	0	maxId	4051439
	//	i:	minId	0	maxId	3171828
	//	i:	minId	0	maxId	23907634
	
	//Naive Bayes
	public static final int tokenSize = 1070853;//we get the largest Token id is 1070852;
	public static final int testInstanceNum = 20297594;
	public static final int trainInstanceNum = 149639105;
	public static String nbTestResultPath = testingFolderPath + "nb_result.csv";
	public static String nbSampleTestResultPath = testingFolderPath +"nbst_result.csv";
	public static String idnbTestResultPath = testingFolderPath + "idnb_result.csv";
	public static String idnbSampleTestResultPath = testingFolderPath + "idnbst_result.csv";
	//For linear regresion
	public static String lrTrainFilePath = trainingFolderPath + "lrTrain.txt";
	public static String lrTestFilePath = testingFolderPath + "lr_result.csv";
	public static double lr_learningRate = 0.001;
	public static double lr_regulazationRate = 0.0015;
	public static int lr_minEpoch = 6;
	public static int lr_maxEpoch = 16;
	public static double lr_meanImpr = 0.0001;
	public static String lrFeaturePath = modelFeaturesFolderPath + "lrFeature";
	public static String lrFormulaPath = modelFeaturesFolderPath + "lrModel";
	public static String lrSampleTestFilePath = testingFolderPath + "lrst_result.csv";
	
	public static final int times = 2; 
	public static final int times2 = 5;
	
}
